package com.redlight.base;

import com.alibaba.fastjson.annotation.JSONField;

/**
 * Created by chao on 2019/1/9.
 */
public class SysOrgBase extends TreeEntity<SysOrgBase> {
    private SysOrgBase parent;
    private String sname;
    private String code;
    private String type;
    private String grade;
    private String address;
    private String zipCode;
    private String master;
    private String phone;
    private String fax;
    private String email;
    private SysUser primaryPerson = new SysUser();
    private SysUser deputyPerson = new SysUser();

    public SysOrgBase() {
    }

    public SysOrgBase(String id) {
        super(id);
    }

    public SysUser getPrimaryPerson() {
        return this.primaryPerson;
    }

    public void setPrimaryPerson(SysUser primaryPerson) {
        this.primaryPerson = primaryPerson;
    }

    public SysUser getDeputyPerson() {
        return this.deputyPerson;
    }

    public void setDeputyPerson(SysUser deputyPerson) {
        this.deputyPerson = deputyPerson;
    }

    @JSONField(
            serialize = false
    )
    public SysOrgBase getParent() {
        return this.parent;
    }

    public void setParent(SysOrgBase parent) {
        this.parent = parent;
    }

    public String getType() {
        return this.type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getGrade() {
        return this.grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public String getAddress() {
        return this.address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getZipCode() {
        return this.zipCode;
    }

    public void setZipCode(String zipCode) {
        this.zipCode = zipCode;
    }

    public String getMaster() {
        return this.master;
    }

    public void setMaster(String master) {
        this.master = master;
    }

    public String getPhone() {
        return this.phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getFax() {
        return this.fax;
    }

    public void setFax(String fax) {
        this.fax = fax;
    }

    public String getEmail() {
        return this.email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getCode() {
        return this.code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getSname() {
        return this.sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }
}
